package com.ayf.payment.game.api.utils;

import java.io.Serializable;

/**
 * @Description: 返回对象封装类
 * @Author: zh-liang
 * @Date : 2019-12-02 18:26
 */
public class CommonResult<T> implements Serializable {

    private static final long serialVersionUID = -5085644213294738445L;
    /**
     * 状态码
     */
    private int code;
    /**
     * 提示信息
     */
    private String msg;
    /**
     * 返回对象
     */
    private T data;

    public CommonResult() {
    }

    public CommonResult(int code, String msg, T data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public CommonResult(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
